package com.ruoyi.interviews.domain;

import java.util.Date;
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.vo.NameVo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 面试记录对象 interviews
 *
 * @author ruoyi
 * @date 2024-11-10
 */
public class Interviews extends NameVo
{
    private static final long serialVersionUID = 1L;

    /** 面试记录id */
    private Long interviewId;

    /** 投递id */
    @Excel(name = "投递id")
    private Long applicationId;

    /** 面试者id */
    @Excel(name = "面试者id")
    private Long interviewerId;

    /** 面试时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "面试时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date interviewTime;

    /** 面试地点 */
    @Excel(name = "面试地点")
    private String location;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    private String jobTitle;

    public String getJobTitle() {
        return jobTitle;
    }

    public void setJobTitle(String jobtitle) {
        this.jobTitle = jobtitle;
    }

    public void setInterviewId(Long interviewId)
    {
        this.interviewId = interviewId;
    }

    public Long getInterviewId()
    {
        return interviewId;
    }
    public void setApplicationId(Long applicationId)
    {
        this.applicationId = applicationId;
    }

    public Long getApplicationId()
    {
        return applicationId;
    }
    public void setInterviewerId(Long interviewerId)
    {
        this.interviewerId = interviewerId;
    }

    public Long getInterviewerId()
    {
        return interviewerId;
    }
    public void setInterviewTime(Date interviewTime)
    {
        this.interviewTime = interviewTime;
    }

    public Date getInterviewTime()
    {
        return interviewTime;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return "Interviews{" +
                "interviewId=" + interviewId +
                ", applicationId=" + applicationId +
                ", interviewerId=" + interviewerId +
                ", interviewTime=" + interviewTime +
                ", location='" + location + '\'' +
                ", status='" + status + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", jobtitle='" + jobTitle + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Interviews that = (Interviews) o;
        return Objects.equals(interviewId, that.interviewId) && Objects.equals(applicationId, that.applicationId) && Objects.equals(interviewerId, that.interviewerId) && Objects.equals(interviewTime, that.interviewTime) && Objects.equals(location, that.location) && Objects.equals(status, that.status) && Objects.equals(createdAt, that.createdAt) && Objects.equals(updatedAt, that.updatedAt) && Objects.equals(jobTitle, that.jobTitle);
    }

    @Override
    public int hashCode() {
        return Objects.hash(interviewId, applicationId, interviewerId, interviewTime, location, status, createdAt, updatedAt, jobTitle);
    }
}
